home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmeFromHorizontalPixels.z / XmeFromHorizontalPixels
Text File  |  1998-10-30  |  4KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss - Converts from pixels to real-world
  10.           dimensions based on horizontal resolution of the screen
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/XmP.h>
  14.           vvvvooooiiiidddd XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           iiiinnnntttt ooooffffffffsssseeeetttt,
  17.           XXXXttttAAAArrrrggggVVVVaaaallll ****vvvvaaaalllluuuueeee);
  18.  
  19.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  20.           This page documents Motif 2.1.
  21.  
  22.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.           XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss converts a horizontal pixel value to
  24.           a real-world dimensional unit. The real-world dimensional
  25.           unit depends on the value of the XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee resource
  26.           associated with the widget.  For example, suppose _w_i_d_g_e_t has
  27.           an XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee resource value of XXXXmmmm1111000000000000TTTTHHHH____IIIINNNNCCCCHHHHEEEESSSS. If the
  28.           input _v_a_l_u_e were 200 pixels, the output _v_a_l_u_e might be 2500
  29.           (2.5 inches) on one screen and 2000 (2.0 inches) on another
  30.           screen.
  31.  
  32.           XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss is an XXXXmmmmEEEExxxxppppoooorrrrttttPPPPrrrroooocccc.
  33.  
  34.           Typically, your widgets will call this function in a
  35.           synthetic resource record.
  36.  
  37.           _w_i_d_g_e_t    Specifies the widget.
  38.  
  39.           _o_f_f_s_e_t    Specifies the offset (in bytes) of a synthetic
  40.                     resource field in the widget record.
  41.  
  42.           _v_a_l_u_e     Specifies a value in pixels and returns a value in
  43.                     the dimensional units used by _w_i_d_g_e_t.
  44.  
  45.      RRRREEEELLLLAAAATTTTEEEEDDDD
  46.           XXXXmmmmeeeeTTTTooooHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss(3), XXXXmmmmeeeeFFFFrrrroooommmmVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss(3), and
  47.           XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss(3).
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.